<?php
if(isset($_POST['username']))
{
	require_once('../includes/database.php');
	$db=new Database();
	$username=$_POST['username'];
	$sql="select id from user_profile where userid='$username'";
	$profile_res=$db->query($sql);
	if(mysql_num_rows($profile_res)>0)
	{
		echo 'false';
	}
	else 
	{
		echo 'true';
	}
}
else
{
	echo 'Invalid SID';
}
?>